﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace VM.Entity.EntityMap.User
{
    public class VM_S_User
    {

        #region Model
        private int _id;
        private string _orgid;
        private int? _empid;
        private int? _roleid;
        private int? _deptid;
        private string _username;
        private string _password;
        private string _phone;
        private string _email;
        private string _wxopenid;
        private string _qq;
        private string _code;
        private int? _createuserid;
        private DateTime? _createdate;
        private string _sessionid;
        private DateTime? _sessionenddate;
        private int? _billstatus;
        private int? _isforbidden;
        private DateTime? _forbiddendate;
        private int? _usersourceid;
        private string _description;
        private int? _isdelete;
        private string _orgids;
        private int? _auditinguserid;
        private DateTime? _auditingdate;
        private string _theme;
        private int? _onlinestatus = 0;
        private string _bgc;
        private string _activebgc;
        private string _topisactive;
        private string _headimgurl;
        private int? _updateuserid;
        private DateTime? _updatedate;
        private string _guid;
        private int? _tableid = 203;
        private int? _auditdeptid;
        private int? _directlymanagerid;
        private int? _branchedmanagerid;
        private string _signimg;
        private int? _checkingingroupid;
        private string _signature;
        private int? _branchedfmanagerid;
        private int? _sumnianjia = 0;
        private int? _sumyuerjia = 0;
        private int? _sumpeihujia = 0;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true,IsIgnore =true)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 组织内码
        /// </summary>
        public string OrgId
        {
            set { _orgid = value; }
            get { return _orgid; }
        }
        /// <summary>
        /// 职员内码 选择职员  带回名称等信息
        /// </summary>
        public int? EmpId
        {
            set { _empid = value; }
            get { return _empid; }
        }
        /// <summary>
        /// 岗位内码
        /// </summary>
        public int? RoleId
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
        /// <summary>
        /// 部门内码
        /// </summary>
        public int? DeptId
        {
            set { _deptid = value; }
            get { return _deptid; }
        }
        /// <summary>
        /// 名称 保证唯一
        /// </summary>
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 密码 后台加密
        /// </summary>
        public string PassWord
        {
            set { _password = value; }
            get { return _password; }
        }
        /// <summary>
        /// 联系电话 保证唯一
        /// </summary>
        public string Phone
        {
            set { _phone = value; }
            get { return _phone; }
        }
        /// <summary>
        /// 邮箱 保证唯一
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 微信OpenId 保证唯一
        /// </summary>
        public string WXOpenId
        {
            set { _wxopenid = value; }
            get { return _wxopenid; }
        }
        /// <summary>
        /// QQ 保证唯一
        /// </summary>
        public string QQ
        {
            set { _qq = value; }
            get { return _qq; }
        }
        /// <summary>
        /// 用户编码 保证唯一
        /// </summary>
        public string Code
        {
            set { _code = value; }
            get { return _code; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreateUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// Session
        /// </summary>
        public string SessionId
        {
            set { _sessionid = value; }
            get { return _sessionid; }
        }
        /// <summary>
        /// Session结束日期
        /// </summary>
        public DateTime? SessionEndDate
        {
            set { _sessionenddate = value; }
            get { return _sessionenddate; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int? BillStatus
        {
            set { _billstatus = value; }
            get { return _billstatus; }
        }
        /// <summary>
        /// 是否禁用
        /// </summary>
        public int? IsForbidden
        {
            set { _isforbidden = value; }
            get { return _isforbidden; }
        }
        /// <summary>
        /// 禁用日期
        /// </summary>
        public DateTime? ForbiddenDate
        {
            set { _forbiddendate = value; }
            get { return _forbiddendate; }
        }
        /// <summary>
        /// 最后一次登录来源内码  微信  qq 用户名 
        /// </summary>
        public int? UserSourceId
        {
            set { _usersourceid = value; }
            get { return _usersourceid; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int? IsDelete
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string OrgIds
        {
            set { _orgids = value; }
            get { return _orgids; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? AuditingUserId
        {
            set { _auditinguserid = value; }
            get { return _auditinguserid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? AuditingDate
        {
            set { _auditingdate = value; }
            get { return _auditingdate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Theme
        {
            set { _theme = value; }
            get { return _theme; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? OnlineStatus
        {
            set { _onlinestatus = value; }
            get { return _onlinestatus; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string bgc
        {
            set { _bgc = value; }
            get { return _bgc; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string activebgc
        {
            set { _activebgc = value; }
            get { return _activebgc; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TopIsActive
        {
            set { _topisactive = value; }
            get { return _topisactive; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string HeadImgUrl
        {
            set { _headimgurl = value; }
            get { return _headimgurl; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? UpdateUserId
        {
            set { _updateuserid = value; }
            get { return _updateuserid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? UpdateDate
        {
            set { _updatedate = value; }
            get { return _updatedate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string GUID
        {
            set { _guid = value; }
            get { return _guid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? TableId
        {
            set { _tableid = value; }
            get { return _tableid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? AuditDeptId
        {
            set { _auditdeptid = value; }
            get { return _auditdeptid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? DirectlyManagerId
        {
            set { _directlymanagerid = value; }
            get { return _directlymanagerid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? BranchedManagerId
        {
            set { _branchedmanagerid = value; }
            get { return _branchedmanagerid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SignImg
        {
            set { _signimg = value; }
            get { return _signimg; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? CheckingInGroupId
        {
            set { _checkingingroupid = value; }
            get { return _checkingingroupid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Signature
        {
            set { _signature = value; }
            get { return _signature; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? BranchedFManagerId
        {
            set { _branchedfmanagerid = value; }
            get { return _branchedfmanagerid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SumNianJia
        {
            set { _sumnianjia = value; }
            get { return _sumnianjia; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SumYuErJia
        {
            set { _sumyuerjia = value; }
            get { return _sumyuerjia; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SumPeiHuJia
        {
            set { _sumpeihujia = value; }
            get { return _sumpeihujia; }
        }
        #endregion Model

    }
}
